import { request, Response } from '@/framework/utils/request';

export const getWarnNoticePage = (params) => {
  return request({
    url: '/warnNoticeConfig/page',
    method: 'get',
    params,
  });
};

/**
 * @params data.id isAi isEnv isDoor phone
 */
export const putWarnNotice = (data) => {
  return request<Response<any>>(
    {
      url: '/warnNoticeConfig/' + data.id,
      method: 'put',
      data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
